package chuishop.yiqimaicai.mapper;

import chuishop.yiqimaicai.pojo.Collect;

import java.util.List;

public interface CollectMapper {

    /**
     * 查询用户收藏
     * @param uid
     * @return
     */
    List<Collect> selectCollectByUid(Integer uid);

    /**
     * 添加收藏
     * @param collect
     * @return
     */
    int addCollect(Collect collect);

    /**
     * 删除收藏
     * @param ids
     * @return
     */
    int delCollect(String[] ids);

}
